//
//  ContentsModel.swift
//  XMLA
//
//  Created by Gao on 17/2/27.
//  Copyright © 2017年 Odm. All rights reserved.
//

import UIKit

class ContentsModel: BaseModel {
    var tags: ContentTags!
    var categoryContents: ContentCategorycontents!
    var isHasRecommendedZones: Bool = false
    var focusImages: ContentFocusimages!
    var msg: String = ""
    var ret: Int = 0
}
class ContentFocusimages: BaseModel {
    var ret: Int = 0
    var title: String = ""
    var list = [CFocusimages_List]()
    
    class func objectClassInArray() -> [AnyHashable: Any] {
        return ["list": CFocusimages_List.self]
    }
}
class CFocusimages_List: BaseModel {
    var uid: Int = 0
    var shortTitle: String = ""
    var id: Int = 0
    var pic: String = ""
    var albumId: Int = 0
    var isShare: Bool = false
    var is_External_url: Bool = false
    var type: Int = 0
    var longTitle: String = ""
}
class ContentTags: BaseModel {
    var maxPageId: Int = 0
    var title: String = ""
    var count: Int = 0
    var list = [ContentTags_List]()
    class func objectClassInArray() -> [AnyHashable: Any] {
        return ["list": ContentTags_List.self]
    }
}
class ContentTags_List: BaseModel {
    var tname: String = ""
    var category_id: Int = 0
}
class ContentCategorycontents: BaseModel {
    var ret: Int = 0
    var title: String = ""
    var list = [CCategoryCotents_List]()
    
    class func objectClassInArray() -> [AnyHashable: Any] {
        return ["list": CCategoryCotents_List.self]
    }
}
class CCategoryCotents_List: BaseModel {
    var title: String = ""
    var list = [CCategoryCotents_L_List]()
    var moduleType: Int = 0
    var isHasMore: Bool = false
    // 推荐类多了这几个属性
    var contentType: String = ""
    var calcDimension: String = ""
    var tagName: String = ""
    
    class func objectClassInArray() -> [AnyHashable: Any] {
        return ["list": CCategoryCotents_L_List.self]
    }
}

class CCategoryCotents_L_List: BaseModel {
    var orderNum: Int = 0
    var top: Int = 0
    var subtitle: String = ""
    var period: Int = 0
    var contentType: String = ""
    var firstId: Int = 0
    var title: String = ""
    var key: String = ""
    var rankingRule: String = ""
    var firstTitle: String = ""
    var firstKResults = [CC_L_L_Firstkresults]()
    var calcPeriod: String = ""
    var coverPath: String = ""
    var categoryId: Int = 0
    // 推荐类多了这些属性
    var id: Int = 0
    var intro: String = ""
    var uid: Int = 0
    var tracks: Int = 0
    var tracksCounts: Int = 0
    var playsCounts: Int = 0
    var isFinished: Int = 0
    var tags: String = ""
    var coverMiddle: String = ""
    var lastUptrackAt: Int64 = 0
    var albumCoverUrl290: String = ""
    var serialState: Int = 0
    var albumId: Int = 0
    var nickname: String = ""
    var lastUptrackTitle: String = ""
    
    class func objectClassInArray() -> [AnyHashable: Any] {
        return ["firstKResults": CC_L_L_Firstkresults.self]
    }
}
class CC_L_L_Firstkresults: BaseModel {
    var id: Int = 0
    var title: String = ""
    var contentType: String = ""
}

